import { Module } from '@nestjs/common';
import { MongooseModule } from '@nestjs/mongoose';
import { ArtworksService } from './artworks.service';
import { ArtworksController } from './artworks.controller';
import { Artwork, ArtworkSchema } from '../users/schemas/artwork.schema';
import { User, UserSchema } from '../users/schemas/user.schema';

@Module({
    imports: [
        MongooseModule.forFeature([
            { name: Artwork.name, schema: ArtworkSchema },
            { name: User.name, schema: UserSchema },
        ])
    ],
    controllers: [ArtworksController],
    providers: [ArtworksService],
    exports: [ArtworksService]
})
export class ArtworksModule { } 